﻿using TR.Domain.Entity;
using TR.Domain.Entity.BsItemType;
using TR.Domain.Repository.sqlDto;

namespace TR.AppService.AppService.Bs_warehouse
{
    public interface IBs_warehouseService
    {
        /// <summary>
        /// 查询
        /// </summary>
        /// <returns></returns>
        Task<bs_WareHouse> ItemSelete(int id);
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="additemDto"></param>
        /// <returns></returns>
        Task<bool> ItemAdd(bs_WareHouse bs_Ware);
        /// <summary>
        /// 分页
        /// </summary>
        /// <param name="pageSize"></param>
        /// <param name="currentPage"></param>
        /// <param name="str"></param>
        /// <returns></returns>
        Task<FenYe<bs_WareHouse>> bs_Item_FenYe(int pageSize, int currentPage, string str);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<bool> ItemDelect(int id);
        /// <summary>
        /// 查询id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        

        Task<bs_WareHouse> ItemSelectid(int id);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="usd"></param>
        /// <returns></returns>
        Task<bool> ItemUpdate(bs_WareHouse uid);

        Task<bs_WareHouse> ItemSelectCode(string ware_code);
        Task<bool> KWUpdate(List<int> id, string warecode);
    }
}
